package com.rock.code.bigdata.middleware.controller;

import com.rock.code.base.controller.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;

/**
 * @author piandu
 * @description 中间件
 * @date 2018/9/14 16/34
 */
@Controller
@RequestMapping("/MiddleWare")
public class MiddleWareViewController extends BaseController {


    @RequestMapping("/{UNIT_ID}/{DATE_TYPE}/{CLASS_NAME}")
    public String host(@PathVariable("UNIT_ID") String UNIT_ID, @PathVariable("DATE_TYPE") String DATE_TYPE, @PathVariable("CLASS_NAME") String CLASS_NAME) {
        this.request.setAttribute("UNIT_ID", UNIT_ID);
        this.request.setAttribute("DATE_TYPE", DATE_TYPE);
        this.request.setAttribute("CLASS_NAME", CLASS_NAME);
        return "bigdata/middleware/middlewareView";
    }
}